feat: Made upload sizes configurable#458
Conversation
…traint Custom constraint reads MEDIA_MAX_UPLOAD_SIZE_MB from DI so the limit stays configurable while the invariants live on the entity, not in the controller.
Without this every consumer mount re-fired a failing /config/admin request.
…SizeMb Initial state is null and the dropzone is hidden behind a loading placeholder until config resolves; a non-positive integer falls back to 200 instead of being silently absorbed.
…igurable-upload-size # Conflicts: # CHANGELOG.md
Response to review findingsUpdated to reflect commits landed on this branch. Addressed
Structural change (
|
Constructor guard turns a 0 (or empty/negative env) misconfig into a clear 500 naming the env var, instead of a 422 "file too large (0 bytes)" that blames the user's upload.
The value is read per-request via %env(int:...)%; no validator cache to clear. Also documented the MiB unit and the alignment requirement with nginx/php-fpm.
Link to issue
#392
Link to ticket
https://leantime.itkdev.dk/#/tickets/showTicket/7259
Description
Made upload sizes configurable.
Checklist